﻿@{
    ViewData["Title"] = "AddProduct";
}
@model OnlineStore.Models.Product

<h2>上架图书</h2>

<form asp-controller="Product" asp-action="Add" enctype="multipart/form-data" method="post">

    <div class="form-group-lg">
        <label asp-for="Name" class="control-label"></label>
        <input asp-for="Name" class="form-control"/>
    </div>

    <div class="form-group-lg">
        <label asp-for="Isbn" class="control-label"></label>
        <input asp-for="Isbn" class="form-control"/>
    </div>

    <div class="form-group-lg">
        <label asp-for="Publisher" class="control-label"></label>
        <input asp-for="Publisher" class="form-control"/>
    </div>

    <div class="form-group-lg">
        <label asp-for="Author" class="control-label"></label>
        <input asp-for="Author" class="form-control"/>
    </div>

    <div class="form-group-lg">
        <label asp-for="Price" class="control-label"></label>
        <input asp-for="Price" class="form-control"/>
    </div>

    <div class="form-group-lg">
        <label asp-for="Type" class="control-label"></label>
        <input asp-for="Type" class="form-control"/>
    </div>

    <div class="form-group-lg">
        <label asp-for="Remain" class="control-label"></label>
        <input asp-for="Remain" class="form-control"/>
    </div>
    <div class="form-group-lg">
        <label asp-for="Description" class="control-label"></label>
        <input asp-for="Description" class="form-control"/>
    </div>
    
    <div class="form-group">
        <label>上传图片</label>
        <input name="images" type="file" />
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-lg-10">
            <button type="submit" class="btn btn-outline-primary">提交</button>
        </div>
    </div>
</form>
